package GUI;

import java.awt.BorderLayout;
import java.awt.ComponentOrientation;
import java.awt.Dimension;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class GameWindow extends JFrame {

	public GameWindow(){
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		setPreferredSize((new Dimension(800, 650)));
		setTitle("Du bist ein Frosch");
		pack();
		setVisible(true);
		
		BorderLayout borderLayout = new BorderLayout();
		setLayout(borderLayout);
		
	    JPanel nordPanel = new JPanel();
	    JPanel southPanel = new JPanel();
	
	    JPanel westPanel = new JPanel();
	    westPanel.setPreferredSize(new Dimension(100,100));
	    
	    JPanel eastPanel = new JPanel();
	    eastPanel.setPreferredSize(new Dimension(100,100));
	    
	    add(nordPanel, borderLayout.NORTH);
	    add(southPanel, borderLayout.SOUTH);
	    add(westPanel, borderLayout.WEST);
	    add(eastPanel, borderLayout.EAST);
	    
	    FlowLayout flowLayoutH = new FlowLayout();
	    FlowLayout flowLayoutV = new FlowLayout();
	  
	    
	    nordPanel.setLayout(flowLayoutH);
	    southPanel.setLayout(flowLayoutH);
	    eastPanel.setLayout(flowLayoutV);
	    westPanel.setLayout(flowLayoutV);
	    
	    for(int i =0 ; i<=11; i++){
	    	JButton card1 = new JButton();
	    }
	    JButton card1 = new JButton();
	    card1.add(new JPanel());
	    JButton card2 = new JButton();
	    JButton card3 = new JButton();
	    JButton card4 = new JButton();
	    JButton card5 = new JButton();
	    JButton card6 = new JButton();
	    JButton card7 = new JButton();
	    
	    JButton card8 = new JButton();
	    JButton card9 = new JButton();
	    JButton card10 = new JButton();
	    JButton card11 = new JButton();
	    JButton card12 = new JButton();
	    JButton card13 = new JButton();
	    JButton card14 = new JButton();
	    
	    JButton card15 = new JButton();
	    JButton card16 = new JButton();
	    JButton card17 = new JButton();
	    JButton card18 = new JButton();
	    JButton card19 = new JButton();
	    JButton card20 = new JButton();
	    JButton card21 = new JButton();
	    
	    JButton card22 = new JButton();
	    JButton card23 = new JButton();
	    JButton card24 = new JButton();
	    JButton card25 = new JButton();
	    JButton card26 = new JButton();
	    JButton card27 = new JButton();
	    JButton card28 = new JButton();
	    
	    Dimension cardDimension = new Dimension(100,100);
	    
	    card1.setPreferredSize(cardDimension);
	    card2.setPreferredSize(cardDimension);
	    card3.setPreferredSize(cardDimension);
	    card4.setPreferredSize(cardDimension);
	    card5.setPreferredSize(cardDimension);
	    card6.setPreferredSize(cardDimension);
	    card7.setPreferredSize(cardDimension);
	    
	    card8.setPreferredSize(cardDimension);
	    card9.setPreferredSize(cardDimension);
	    card10.setPreferredSize(cardDimension);
	    card11.setPreferredSize(cardDimension);
	    card12.setPreferredSize(cardDimension);
	    card13.setPreferredSize(cardDimension);
	    card14.setPreferredSize(cardDimension);
	    
	    card15.setPreferredSize(cardDimension);
	    card16.setPreferredSize(cardDimension);
	    card17.setPreferredSize(cardDimension);
	    card18.setPreferredSize(cardDimension);
	    card19.setPreferredSize(cardDimension);
	    card20.setPreferredSize(cardDimension);
	    card21.setPreferredSize(cardDimension);
	    
	    card22.setPreferredSize(cardDimension);
	    card23.setPreferredSize(cardDimension);
	    card24.setPreferredSize(cardDimension);
	    card25.setPreferredSize(cardDimension);
	    card26.setPreferredSize(cardDimension);
	    card27.setPreferredSize(cardDimension);
	    


	    
	    nordPanel.add(card1);
	    nordPanel.add(card2);
	    nordPanel.add(card3);
	    nordPanel.add(card4);
	    nordPanel.add(card5);
	    nordPanel.add(card6);
	    nordPanel.add(card7);
	    
	    southPanel.add(card8);
	    southPanel.add(card9);
	    southPanel.add(card10);
	    southPanel.add(card11);
	    southPanel.add(card12);
	    southPanel.add(card13);
	    southPanel.add(card14);
	    
	    eastPanel.add(card15);
	    eastPanel.add(card16);
	    eastPanel.add(card17);
	    eastPanel.add(card18);
	    //eastPanel.add(card19);
	    //eastPanel.add(card20);
	    //eastPanel.add(card21);
	    
	    westPanel.add(card22);
	    westPanel.add(card23);
	    westPanel.add(card24);
	    westPanel.add(card25);
	    
	    
	    
	    
	    
		
		
		
		
		
	}
}
